package demo11;
/*
对于static关键字：一旦使用，那么这样的内容不再属于对象自己，而是属于类，所以凡是本类的对象，都共享一份

 */
public class TestStatic {
    public static void main(String[] args) {

        Student one = new Student("李树强",20);
        one.room = "4J109";
        System.out.println("学号是："+one.getID()+",姓名："+one.getName()+",年龄："+one.getAge()+",教室："+one.room);
        Student two = new Student("老四",22);
        System.out.println("学号是："+two.getID()+",姓名："+two.getName()+",年龄："+two.getAge()+",教室："+two.room);

    }
}
